#include "M_Function.h"
#include "M_Declaration.h"
#include"Arduino.h"
#include <Wire.h>
#include <stdio.h>
#include <stdlib.h>
int x = 1;
//char value1;
//char value2;
//char value3;
char message[20]={0};
char claw1;
char claw2;
char claw3;
void JointTransmission(int num,char value1,char value2,char value3,char flag1,char flag2,char flag3)
{


  Wire.beginTransmission(num);  // 传输到指定设备
  Wire.write('x');
  Wire.write(value1);        // 发送五个字节
  Wire.write('y');
  Wire.write(value2);        // 发送五个字节
  Wire.write('z');
  Wire.write(value3);        // 发送五个字节
  Wire.write('w');
  Wire.write(flag1);
  Wire.write('s');
  Wire.write(flag2);
  Wire.write('d');
  Wire.write(flag3);
  Wire.write(x);              // 发送标识字节
  x++;
  Wire.endTransmission();     // 停止传输
}
